PROJECT_ROOT = $(dir $(abspath $(lastword $(MAKEFILE_LIST))))

CC = gcc

OBJS = Hello.o calc.o arg.o mytime.o

CFLAGS = -Wall -O -g

all:
	@echo $(PROJECT_ROOT)

hello:$(OBJS)
	$(CC) $^ -o $@

%.o:%.c %.h
	$(CC) -c $(CFLAGS) $< -o $@

clean:
	rm -fr CPro1 $(OBJS)